Skip to main content

Get Document Type Detail

GET : http://<base_url>/digipay/v3/user/document_type/{id}

This API is used to delete te new document type into the system

PATH PARAMS:-

ParameterTypeDescriptionValue
idStringUnique id assign to document retrive a document type detail.da65da5sd6a5dsa56d

HEADERS:-

ParameterTypeDescriptionValue
AuthorizationStringIt is a combination of type and token to authenticate user for the given tokenToken duik7309njdlkhdauhknksadhjkas986876sd873j
CompanyIDStringCompany_id is a unique primary id, that is represent company detail76bc712200ca444fa334f9e55e5fd7a8

Request Body:-

Request Example
curl --request GET \
--url http://192.168.1.102:8014/digipay/v3/user/document_type/da65da5sd6a5dsa56d \
--header 'Authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI2NWY0ZDI1MDliZmU0NTBmYTg4MTVhNTU5Njk3YmM0NyIsInJvbGVzIjpbIlJPTEVfQURNSU4iXSwiZXhwIjoxNjkzNTIxOTU1fQ.9oWwUzlFzmYB1ZOhaVamxKJH6DsMO8tFue2kbg2YyoI' \
--header 'CompanyID: 76bc712200ca444fa334f9e55e5fd7a8' \
--header 'accept: application/json'

Response:-

Response 200(OK)

{
"success": 1,
"error": [],
"data": {
"document_type": [
{
"id": "b9a4cbeeedd340509cb1ac628cae2973",
"document_type_title": "Selfie",
"document_user_type": 2,
"document_side_type": 1,
"is_mandatory" : false,
"document_extra_fields": [
"key1",
"key2"
],
"document_type" : 1, // 1 = Document 2 = Selfie
"document_group": 1 // 1 = KYC, 2 = Transaction
}
]
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}

RESPONSES :-

Status CodeDescription
200OK
400Bad Request
404Not Found
500Internal Server Error